import request from '@/utils/request'
// 获取批量任务列表
export function getBatchTaskList(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetBatchTaskList',
    vPar: data
  })
}
// 获取批量任务列表详情
export function getBatchTaskByGroupID(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetBatchTaskByGroupID',
    vPar: data
  })
}
// 获取批量任务列表详情
export function addBatchGroup(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'AddBatchGroup',
    vPar: data
  })
}
// 删除批量任务分组
export function delBatchGroup(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'DelBatchGroup',
    vPar: data
  })
}
// 删除批量任务分组
export function moveBatchGroup(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'MoveBatchGroup',
    vPar: data
  })
}
// 作业延时
export function getWebTaskDelayList(data) {
  return request({
    dmName: 'TSchedulerDM',
    lpName: 'GetWebTaskDelayList',
    vPar: data
  })
}
// 作业延时设置延时时间
export function setTaskDelay(data) {
  return request({
    dmName: 'TSchedulerDM',
    lpName: 'SetTaskDelay',
    vPar: data
  })
}
// 取消作业延时设置延时时间
export function delTaskDelay(data) {
  return request({
    dmName: 'TSchedulerDM',
    lpName: 'DelTaskDelay',
    vPar: data
  })
}
// 初始化任务查询
export function getList(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetSaveBatchTaskList',
    vPar: data
  })
}
// 删除任务查询
export function delSaveBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'DelSaveBatchTask',
    vPar: data
  })
}
// 任务查询详情
export function getBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetBatchTask',
    vPar: data
  })
}
// 批量任务历史功能
export function getTodaySaveBatchTaskList(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetTodaySaveBatchTaskList',
    vPar: data
  })
}

// 敏捷任务修改功能
export function setBatchGroup(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'SetBatchGroup',
    vPar: data
  })
}

// 敏捷任务粘贴任务功能
export function pasteBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'PasteBatchTask',
    vPar: data
  })
}

// 敏捷任务任务执行功能
export function execBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'ExecBatchTask',
    vPar: data
  })
}

// 敏捷任务任务表格删除功能
export function delBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'DelBatchTask',
    vPar: data
  })
}

// 敏捷任务告警通知弹框
export function getComponentTaskNotify(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetComponentTaskNotify',
    vPar: data
  })
}

// 敏捷任务告警通知弹框
export function getBatchTaskNotify(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'GetBatchTaskNotify',
    vPar: data
  })
}

// 敏捷任务告警通知弹框
export function setComponentTaskNotify(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'SetComponentTaskNotify',
    vPar: data
  })
}

// 敏捷任务告警通知弹框
export function setBatchTaskNotify(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'SetBatchTaskNotify',
    vPar: data
  })
}

// 敏捷任务表格详情功能
export function checkExceLimit(data) {
  return request({
    dmName: 'TFileDM',
    lpName: 'CheckExceLimit',
    vPar: data
  })
}

// 敏捷任务表格详情功能
export function saveBatchTask(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'SaveBatchTask',
    vPar: data
  })
}

// 敏捷任务表格右键菜单修改属性功能
export function setBatchTaskAttr(data) {
  return request({
    dmName: 'THomeDM',
    lpName: 'SetBatchTaskAttr',
    vPar: data
  })
}
